<template>
	<view>
		<web-view :src="url" v-if="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '',
			};
		},
		onLoad(e) {

			// #ifdef H5
			window.location.href = e.url
			// #endif

			// #ifdef APP-PLUS
			// 安卓
			let payURL = "alipayqr://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode="+decodeURI(e.url)
			plus.runtime.openURL(payURL)
			// IOS
			// let payURL = "alipay://platformapi/startapp?saId=10000007&clientVersion=3.7.0.0718&qrcode="+decodeURI(e.url)
			// #endif
			setTimeout(()=>{
				uni.redirectTo({
					url: '/pages/order/orderList?tabIndex=0&loadingPage=true'
				})
			},3000)

		}
	}
</script>

<style lang="scss" scoped>

</style>
